import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: '/home' },
  { path: '/home', component: () => import(/* webpackChunkName: "Home" */ '@/views/home.vue') },
  { path: '/mine', component: () => import(/* webpackChunkName:"Mine" */'@/views/mine.vue') }
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
